{% load comments %}
{% if user.is_authenticated %}
	<form action="{% comment_form_target %}" method="post">
		{% for field in form %}
			{% if field.is_hidden %}
				{{ field }}
			{% endif %}
		{% endfor %}
		<input type="hidden" name="name" value="{{ user.username }}" />
		<input type="text" name="honeypot" size="64" style="display: none;" />
		<label for="id_comment">Comment</label>
		<textarea id="id_comment" rows="10" cols="40" name="comment"></textarea>
		<input type="submit" name="submit" class="submit-post" value="Post" />
	</form>
{% else %}
	<p>Please <a href="/login/">log in</a> to post comments.</p>
{% endif %}